/***************************************************
 ** @Desc : This file for ...
 ** @Time : 2018-8-30 14:20
 ** @Author : Joker
 ** @File : string_pool
 ** @Last Modified by : Joker
 ** @Last Modified time: 2018-09-21 16:13:24
 ** @Software: GoLand
****************************************************/
package utils

/*地址*/
const (
	REQ_URL = "https://openapi.alipay.com/gateway.do" //请求地址
)

/*固定请求参数*/
const (
	APPID    = "2018 1470467" //阿里生成的应用号
	SECID    = "RSA2"             //签名算法
	VERSIONS = "1.0"              //接口版本
	FORMAT   = "JSON"             //数据格式
	CHARSET  = "utf-8"             //请求使用的编码格式
	SELLER_ID = "20882318 9295"
)

/*请求API*/
//说明文档: https://docs.open.alipay.com/api_1/alipay.trade.precreate
const (
	PAY               = "alipay.trade.pay"                               //统一收单交易支付接口（条码支付）
	PRECREATE         = "alipay.trade.precreate"                         //统一收单线下交易预创建（扫码支付）
	QUERY             = "alipay.trade.query"                            //统一收单线下交易查询
	CANCEL            = "alipay.trade.cancel"                            //统一收单交易撤销接口
	REFUND            = "alipay.trade.refund"                            //统一收单交易退款接口
	DOWNLOADURL_QUERY = "alipay.data.dataservice.bill.downloadurl.query" //查询对账单下载地址
	SYN               = "monitor.heartbeat.syn"                          //交易保障接口
)

/*SHA256WithRSA算法密钥*/
const (
	//私钥
	PRIVATE_KEY = `-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAv44OfiSObVz1WDaOUAciuBjlvmccK5F8X/thXOuOeVfDOBHS
ZZoVhz413LSJGAUyT27vQ/kJ8oZF3vl2ut6Xa7cNDLreiv6rIKy/h4qv7cLWFZq5
fARgggRonXJY6wJ7hjM81snQ2RxheYmfQ0RMyVVX3ukqvGgL36XyOV4K7OMF8sMX
0Cnq2N36SlaXyjk8fdtJeIIQbALCLhvMmLvJg4ms+n7FZeoa6eL0pU7d8njbPDsX
lWNv63Untwf0ZtqTzQTSmTAWFCdlL81OlEVaohtbJhW+HM4CCSoCzw09frFWh3jB
MI6ckELTzV/MCon6sJ+qUzyNYauIIPNWbg6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lPR6Z87xQXvlAxbHPgRiRC5p+7BbxksOYCB3Ty2lGntxt64S6znmlFKLjQXG3dQANH9vaIihS+PJbA3bg0yBY4BCKZ4QCzV1+vUXndSUgmMUvHDlRZufq0YMpsiumqRRckKrk2fMwZvs0ZCGlofyuiyrou+x/W9B04Dk3mXfVn3SOrvFWLTbpv1ixrDy2XwipRfjKHLhwmPXEQzQ8mu9X01GKAPECV+k6RkqyFfbmxy6Tsijkab8fYh9qKK9G9vtW80nTzLu0mVXxdYiwyczPC7lWVdFaBzIbljDD3ZVZ5wSAJUY66+ZbOb8a8W8IpMmq5QIDAQAB"

	PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv44OfiSObVz1WDaOUAci
uBjlvmccK5F8X/thXOu 63Untwf0ZtqTzQTSmTAWFCdlL81OlEVa
ohtbJhW+HM4CCSoCzw09frFWh3jBMI6ckELTzV/MCon6sJ+qUzyNYauIIPNWbg6x
LwIDAQAB
-----END PUBLIC KEY-----`
)

/*生成验证码地址*/
const BARCODEURL = "static/img/barcode/joker.png"

/*成功失败状态*/
const (
	PayStatus_Success = "success"
	PayStatus_Failed  = "fail"
)

/*cookie失效时间*/
const CookieExpire = 31 * 60
